package com.tangyuan.dto;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
public class HeadlinesCommentDto {

    @NotEmpty(message = "评论内容不能为空")
    private String content;

    @NotNull(message = "评论id不能为空")
    @Min(value = 1,message = "新闻不存在")
    private Long headlinesId;

    private Long parentId;
}
